import forumAxios from '../utils/request'

const BASE_URL = '/comment'

export async function addComment(comment) {
    const resp = await forumAxios.post(BASE_URL + '/addComment', comment);
    return resp
}

export async function getCommentsByArticleId(articleId) {
    const resp = await forumAxios.get(BASE_URL + '/getCommentsByArticleId', {
        params: {
            articleId: articleId
        }
    });
    return resp
}